package com.power.wx.request;

import java.awt.Button;
import java.awt.FlowLayout;
import java.awt.TextField;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.JFrame;

public class RonganFrame extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 206503348312410049L;

	public RonganFrame() {
		this.setTitle("test");

		// 获得面板的实例
		RonganImagePanel panel = new RonganImagePanel();
		this.setLayout(new FlowLayout());
		this.add(panel);
		TextField textField = new TextField(10);
		textField.setSize(100, 50);
		this.add(textField);
		this.add(new Button("输入图片验证码，并点击次按钮"));
		this.addWindowListener(new WindowAdapter() {
			// 设置关闭
			public void windowClosing(WindowEvent e) {
				System.exit(0);
			}
		});

		this.pack();
		this.setVisible(true);

	}

	public static void main(String[] args) {
		new RonganFrame();
	}
}
